import java.util.Scanner;

/**
 * @author zyj
 * @date 2022年05月17日 11:24
 */
public class Demo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int i = sc.nextInt();
        if (i >= 10){
            System.out.println(i);
        }else {
            //抛出一个自定义异常
            try {
                throw new MyException("该异常继承Exception");
            } catch (MyException e) {
                e.printStackTrace();
            }
        }


        i = sc.nextInt();
        if (i < 10){
            System.out.println(i);
        }else {
            //抛出一个自定义异常
            try {

                throw new MyException1("这个异常继承RuntimeException");
            }catch (MyException1 e){
                e.printStackTrace();
                System.out.println("进入catch");
            }
        }

        System.out.println("你好");
    }
}
